$(document).ready(function() {
	$(".carousel-bbc").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
        visible: 8,
        auto: 1500,
        speed: 400

    });
    
    $('#slider, #slide-middle').nivoSlider({
        effect: 'random', // Specify sets like: 'fold,fade,sliceDown'
        slices: 5, // For slice animations
        animSpeed: 500, // Slide transition speed
        pauseTime: 7000 // How long each slide will show
    });

    $(".TabsHiTech, .TabsElec, .TabsDetails").tabs().find(".ui-tabs-nav").sortable({ axis: "x" });
    $('.tooltip').tooltip();
    jQuery(".easytooltip").easyTooltip({
        xOffset: -40,
        yOffset: 50
    }); // Tooltips! 
    jQuery('.fade_hover').hover(
	    function() {
	        jQuery(this).stop().animate({ opacity: 0.8 }, 150);
	    },
	    function() {
	        jQuery(this).stop().animate({ opacity: 1 }, 150);
	    }
    ); // The fade function

   
    $(".pro-comment tr:odd, .box-spec tr:odd, .cate-news-content:odd").css("background", "#F7F7F7");
    $(".pro-comment tr:even, .box-spec tr:even, .cate-news-content:even").css("background", "#FFF");
    var icons = {
        header: "ui-icon-circle-arrow-e",
        headerSelected: "ui-icon-circle-arrow-s"
    };
    $("#accordion").accordion({
        icons: icons,
        autoHeight: false,
        collapsible: true
    });
    $("#toggle").button().toggle(function() {
        $("#accordion").accordion("option", "icons", false);
    }, function() {
        $("#accordion").accordion("option", "icons", icons);
    });
});